package configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration("ConfigurationBean")
public class ConfigurationBean {

    @Bean
    public DemoBean demoBean(){
        DemoBean demoBean = new DemoBean();
        demoBean.setAge(100);
        return demoBean;
    }

}
